<template>
  <div class="goods-info">
    <div class="info-desc">
      <div class="top"></div>
      <div class="desc">{{ detailInfo.desc }}</div>
      <div class="end"></div>
      <div class="info-key" v-if="detailInfo.detailImage">
        {{ detailInfo.detailImage[0].key }}
      </div>
      <div class="info-list" v-if="detailInfo.detailImage">
        <img
          @load="imageLoad"
          :src="item"
          alt=""
          v-for="(item, index) in detailInfo.detailImage[0].list"
          :key="index"
        />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    detailInfo: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  methods: {
    imageLoad() {
      console.log("----------------");
      this.$emit("detailImageLoad");
    },
  },
};
</script>

<style scoped>
.info-list img {
  width: 100%;
}
</style>